//
//  UIImage+Fit.h
//  SinaWeibo
//
//  Created by mj on 13-8-19.
//  Copyright (c) 2013年 itcast. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Fit)
#pragma mark 返回拉伸好的图片
+ (UIImage *)resizeImage:(NSString *)imgName;

- (UIImage *)resizeImage;

/**
 *  根据当前图片生成一张灰色的图片
 */
-(UIImage*)convertGrayImage;
/**
 *  根据当前图片生成一张灰色的图片 方法二
 */
- (UIImage *)convertToGrayscale;


+ (UIImage *)imageWithSize:(CGSize)size FromColor:(UIColor *)color;


- (UIImage *) imageWithTintColor:(UIColor *)tintColor;

- (UIImage *) imageWithGradientTintColor:(UIColor *)tintColor;


+ (NSData *)imageToDate:(UIImage *)image;

@end
